package org.kfive.nova.algorithm.binarytree;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 16-7-16
 * Time: 下午4:33
 * To change this template use File | Settings | File Templates.
 * 二叉树结点
 */
public class TreeNode {

    private int value;

    private int height;

    private TreeNode leftTree;

    private TreeNode rightTree;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public TreeNode getLeftTree() {
        return leftTree;
    }

    public void setLeftTree(TreeNode leftTree) {
        this.leftTree = leftTree;
    }

    public TreeNode getRightTree() {
        return rightTree;
    }

    public void setRightTree(TreeNode rightTree) {
        this.rightTree = rightTree;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
}
